function pagination(index, pageCount) {
    if(index < 1 || index > pageCount) {
        return;
    }
    window.location.href = "/home/" + index;
}
$(document).ready(function(){
    $("#top2SayA").click(function(){
        var content = $("#top2SayContent").val();
        if (content == null || content.toString().length == 0) {
            return;
        }
        $("#top2SayA").attr("href","/thinkWords/add/"+content);
    });
    /*多彩tag*/
    var top2SeeSpan = $("#top2See").find("span");
    top2SeeSpan.each(function(){
        var x = 9;
        var y = 0;
        var rand = parseInt(Math.random() * (x - y + 1) + y);
        $(this).addClass("size"+rand);
    });
});